import React, { Component } from 'react'

import Child from './Child'

export default class Parent extends Component {

//   name = 'wxy'

  constructor() {
    super()
    this.name = 'www'
  }

  render() {
    return (
      <div>
        我是父组件
        <Child parentName={this.name} />
      </div>
    )
  }
}
